package com.why.remote;

import com.github.pagehelper.PageInfo;
import com.why.dto.NhDto;
import com.why.pojo.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface LaiFangRemote {
    /**
     * 说明:增加申请来访的表
     * @param visitor
     * @return
     */
    @RequestMapping("/laifangsq")
    NhDto<String> FenyeSelect(@RequestBody Visitor visitor);

    /**
     * 说明:查询改账号下是否有老人
     * @param id 账号ID
     * @return
     */
    @RequestMapping("/laifangshijiao")
    NhDto<List<OldMan>>laifangshijiao(@RequestParam("id") int id);

    /**
     * 分页查询来访申请
     * @param pageNum
     * @param pageSize
     * @return
     */
    @RequestMapping("/selectvisitor")
    NhDto<PageInfo<Visitor>>selectvisitor(@RequestParam("pageNum")int pageNum, @RequestParam("pageSize")int pageSize,@RequestParam("userName")String userName);
    @RequestMapping("/upvisitor")
    NhDto<String>upvisitor(@RequestParam("id") int id);
    @RequestMapping("/devisitor")
    NhDto<String>devisitor(@RequestParam("id") int id);
    @RequestMapping("/senature")
    NhDto<List<Nature>>senature();
    @RequestMapping("/secategory")
    NhDto<List<Category>>secategory();
    /**
     * 保安查询来访记录
     */
    @RequestMapping("/selectThree")
    NhDto<PageInfo<Visitor>>selectThree(@RequestParam("pageNum")int pageNum, @RequestParam("pageSize")int pageSize,@RequestParam("userName")String userName);
    @RequestMapping("/tyrys")
    NhDto<String>tyrys(@RequestParam("id") int id,@RequestParam("status") int status);
    @RequestMapping("selectOldName")
    NhDto<String>selectOldName(@RequestParam("username") String username);

    /***
     *查看所有的护理记录
     * @param pageNum
     * @param pageSize
     * @return
     */
    @RequestMapping("/selectnurse")
    NhDto<PageInfo<Nurse>>selectnurse(@RequestParam("pageNum")int pageNum, @RequestParam("pageSize")int pageSize);
    @RequestMapping("denurse")
    NhDto<String>denurse(@RequestParam("isDelete") int isDelete);
}
